package com.baida.retail.tasksystem.dao;

import com.baida.retail.tasksystem.entity.OrderItem;

import java.util.List;

public interface OrderItemDao {
    int increaseRefundedQuantity(Long recordId, int refundedQuantity);

    int updateOutOfStockQuantity(Long recordId, int outOfStockQuantity);

    int increaseSortedQuantity(Long recordId);

    OrderItem getByRecordId(Long recordId);

    List<OrderItem> getByOrderId(Long orderId);

    int deleteByPrimaryKey(Integer id);

    int insert(OrderItem record);

    int insertSelective(OrderItem record);

    OrderItem selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OrderItem record);

    int updateByPrimaryKey(OrderItem record);
}
